/* 在此处添加你的样式 */

/* 示例CSS结构：

:root {
    /* 布局变量 */
    --container-width: 1200px;
    --card-min-width: 280px;
    --grid-gap: 1.5rem;
    
    /* 颜色 */
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    
    /* 阴影 */
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* 过渡 */
    --transition-speed: 0.3s;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: var(--grid-gap);
    grid-auto-flow: dense;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed),
                box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-wide {
    grid-column: span 2;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-image {
    position: relative;
    padding-top: 60%;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.btn:hover {
    background: var(--primary-color-dark);
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-load {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    :root {
        --card-min-width: 240px;
    }
}

@media (max-width: 768px) {
    .card-wide,
    .card-large {
        grid-column: auto;
        grid-row: auto;
    }
    
    .filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    :root {
        --grid-gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

*/
